'use strict';



angular.module('app')
	.controller('mapManagerController', [ '$scope', '$rootScope', '$state', '$timeout', 'toaster',
	                                function($scope, $rootScope, $state, $timeout, toaster) {
		$scope.title = '门禁地图';
        $scope.param = { };
        $scope.loading = false;
//             
//
//		
//      $scope.deviceOpen = function(onenets){
//      	var onenet =  onenets.split('||');
//      	alert(onenet[0]);
//      	$scope.openparam.msg = "7E46432D38393130413137303430313032FFFFFFFF7115425B0303000000000401010000837E";
////        	$scope.openparam.msg = "7E46432D38393130413137303430303039FFFFFFFF7115425B0303000000000401000000887E";
//      	$scope.openparam.devId = onenet[0];
//      	$scope.openparam.devKey = onenet[1];
//      	$scope.openparam.type = "webopen";
//      	
//			$.ajax({
//				type: 'POST',
//	            dataType: 'json',
//				contentType:'application/json;charset=UTF-8',
//				url : '/hwapi/hw/api',
//				data: angular.toJson($scope.openparam)
//			}).then(function(result) {
//				if (result.httpCode == 200) {
//					toaster.clear('*');
//                  toaster.pop('success', '', "请求成功");
//				} else {
//					toaster.clear('*');
//                  toaster.pop('error', result.msg);
//				}
//			});
//      }

} ]);